﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using System.Xml.Serialization;

namespace XEvents.Library
{
    [XmlRoot("MapValues")]
    public class MapValueCollection : List<MapValue>
    {
        public MapValueCollection(IEnumerable<MapValue> mvs)
            : base(mvs)
        { }

        public MapValue this[string name]
        {
            get { return this.ToDictionary(n => n.Name, n => n)[name]; }
        }
    }
}
